<dl class="<?php echo $this->full_class?>" id="<?php echo $this->id ?>">
	<dt><?php echo $this->title?></dt>
<?php
if(!empty($this->goods_list)){
	list($width, $height) = explode('x', $this->thumb);
	$no_picture = CommonHelper::get_thumb(NO_PICTURE, $this->thumb);
	foreach ($this->goods_list as $goods){
		if(isset($goods['main_picture']) && !empty($goods['main_picture']) && is_string($goods['main_picture'])){
			$main_picture = CommonHelper::get_thumb($goods['main_picture'], $this->thumb);
		}else{
			$main_picture = $no_picture;
		}
		$price = 0;
		if(isset($goods['price'])){
			$price = floatval($goods['price']);
		}
		
		$market_price = 0;
		if(isset($goods['market_price']) && !empty($goods['market_price'])){
			$market_price = floatval($goods['market_price']);
		}
		$url = GoodsModel::getUrl($goods);
?>
	<dd>
		<?php 
			echo CHtml::link(CHtml::image($main_picture, $goods['name'], array('class'=>'auto_img')), $url, array('class'=>'img', 'style'=>"width:{$width}px;height:{$height}px;"));
		?><br>
		<div class="info">
		<?php echo CHtml::tag('h6', array(), CHtml::link($goods['name'], $url))?>
		<p>商城价：￥<?php echo number_format($price, 2)?></p>
		<?php if($market_price > 0){?>
		市场价：<del>￥<?php echo number_format($market_price, 2)?></del>
		<?php }?>
		</div>
	</dd>
<?php 
	}
}
?>
</dl>
